package com.liang.recommend;

import com.liang.pojo.Movie;
import com.liang.service.impl.MovieServiceImpl;


import java.util.List;

public class Recommend1 {
    private int userId;
    private int index;
    private List<Movie> getMovieList;
    private List<Movie> UserMovieList;
    private List<Movie> rdMovieList;

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public List<Movie> getRecommendMovie(){
        MovieServiceImpl movieService = new MovieServiceImpl();
        getMovieList=movieService.getRdMovieList(userId,index);
        for (Movie movie : getMovieList) {
            System.out.println(movie);
        }
        return rdMovieList;
    }

}
